/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.setting.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 事故发生的可能性设置
 *
 * @author pig
 * @date 2023-07-17 19:40:24
 */
@Data
@TableName("risk_config_l")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "事故发生的可能性设置")
public class RiskConfigLEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 检查项目
	*/
    @Schema(description="检查项目")
    private String moduleCode;

	/**
	* 描述
	*/
    @Schema(description="描述")
    private String remarks;

	/**
	* 检查表配置标识
	*/
    @Schema(description="检查表配置标识")
    private BigDecimal riskValue;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	/* 所属企业 */
	public String getOrgIdStr() {
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company, this.getOrgId());
	}

}
